package design.aopdemo.config;

import design.aopdemo.aop.AopAspect;
import design.aopdemo.aop.AopAspect2;
import design.aopdemo.aop.AopAspect3;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
@ComponentScan("design.aopdemo.aop")
public class MultiAopConfig {
    @Bean
    public AopAspect getAspect1(){
        return new AopAspect();
    }

    @Bean
    public AopAspect2 getAspect2(){
        return new AopAspect2();
    }

    @Bean
    public AopAspect3 getAspect3(){
        return new AopAspect3();
    }
}
